﻿namespace SBlogCore.EventBus.CrossProcessEventBus.Attributes
{
    /// <summary>
    /// 订阅者特性
    /// </summary>
    public class CrossEventHandlerAttribute:Attribute
    {
        public CrossEventHandlerAttribute():this(string.Empty)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        public CrossEventHandlerAttribute(string? name)
        {
            if (!string.IsNullOrEmpty(name))
            {
                this.Name = name;
            }
        }
        /// <summary>
        /// 事件名称
        /// </summary>
        public string? Name { get; set; }
    }
}
